import requests

url = "http://httpbin.org/post"

f =[
    ("file1",("1.txt",open("d:/1.txt","r"))),
    ("file2",("mm.png",open("d:/mm.png","rb")))

]
r = requests.post(url,files=f)
print(f)

